{ //=========Macro generated from canvas: c2/ //========= (Wed Feb 25 11:08:36 2009) by ROOT version5.14/00f TCanvas *c2 = new TCanvas("c2", "",847,66,800,800); gStyle->SetOptStat(0); c2->Range(-0.667896,0.702703,2.99174,1.24324); c2->SetFillColor(10); c2->SetBorderMode(0); c2->SetBorderSize(2); c2->SetLogx(); c2->SetTickx(); c2->SetTicky(); c2->SetLeftMargin(0.17); c2->SetRightMargin(0.08); c2->SetTopMargin(0.08); c2->SetBottomMargin(0.18); c2->SetFrameLineWidth(2); c2->SetFrameBorderMode(0); c2->SetFrameLineWidth(2); c2->SetFrameBorderMode(0); TGraphErrors *gre = new TGraphErrors(9); gre->SetName("LDC01"); gre->SetTitle(""); gre->SetFillColor(1); gre->SetLineColor(2); gre->SetLineWidth(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.0); gre->SetPoint(0,0.9995,1.07288); gre->SetPointError(0,0,0.0193693); gre->SetPoint(1,1.5003,1.08649); gre->SetPointError(1,0,0.0190354); gre->SetPoint(2,2.0002,1.06965); gre->SetPointError(2,0,0.0182623); gre->SetPoint(3,3.0002,1.0576); gre->SetPointError(3,0,0.0177553); gre->SetPoint(4,4.9999,1.06155); gre->SetPointError(4,0,0.017404); gre->SetPoint(5,10.0004,1.04014); gre->SetPointError(5,0,0.0160945); gre->SetPoint(6,29.9998,1.0301); gre->SetPointError(6,0,0.0162724); gre->SetPoint(7,49.9999,1.02124); gre->SetPointError(7,0,0.0159018); gre->SetPoint(8,99.9999,1.0269); gre->SetPointError(8,0,0.0151413); TH1 *LDC012 = new TH1F("LDC012","",100,0.9,300); LDC012->SetMinimum(0.8); LDC012->SetMaximum(1.2); LDC012->SetDirectory(0); LDC012->SetStats(0); LDC012->SetLineWidth(2); LDC012->SetMarkerStyle(24); LDC012->SetMarkerSize(1.0); LDC012->GetXaxis()->SetTitle("p_{T}/GeV"); LDC012->GetXaxis()->SetNdivisions(506); LDC012->GetXaxis()->SetLabelFont(42); LDC012->GetXaxis()->SetLabelOffset(0.01); LDC012->GetXaxis()->SetTitleOffset(1.1); LDC012->GetXaxis()->SetLabelSize(0.06); LDC012->GetXaxis()->SetTitleSize(0.07); LDC012->GetXaxis()->SetTitleFont(42); LDC012->GetYaxis()->SetTitle("#sigma_{r#phi}/mean"); LDC012->GetYaxis()->SetNdivisions(506); LDC012->GetYaxis()->SetLabelFont(42); LDC012->GetYaxis()->SetLabelOffset(0.015); LDC012->GetYaxis()->SetLabelSize(0.06); LDC012->GetYaxis()->SetTitleSize(0.07); LDC012->GetYaxis()->SetTitleOffset(1.1); LDC012->GetYaxis()->SetTitleFont(42); LDC012->GetZaxis()->SetLabelFont(42); LDC012->GetZaxis()->SetLabelOffset(0.015); LDC012->GetZaxis()->SetLabelSize(0.06); LDC012->GetZaxis()->SetTitleSize(0.07); LDC012->GetZaxis()->SetTitleOffset(1.1); LDC012->GetZaxis()->SetTitleFont(42); LDC012->GetXaxis()->SetRange(1,41); gre->SetHistogram(LDC012); gre->Draw("pla"); gre = new TGraphErrors(9); gre->SetName("LDCPrim"); gre->SetTitle("LDCPrim"); gre->SetFillColor(1); gre->SetLineColor(1); gre->SetLineWidth(2); gre->SetMarkerColor(1); gre->SetMarkerStyle(21); gre->SetMarkerSize(1.0); gre->SetPoint(0,0.9995,0.989775); gre->SetPointError(0,0,0.0184669); gre->SetPoint(1,1.5003,0.980619); gre->SetPointError(1,0,0.0170874); gre->SetPoint(2,2.0002,0.985324); gre->SetPointError(2,0,0.0157385); gre->SetPoint(3,3.0002,0.988365); gre->SetPointError(3,0,0.0164468); gre->SetPoint(4,4.9999,0.987046); gre->SetPointError(4,0,0.0171045); gre->SetPoint(5,10.0004,1.00257); gre->SetPointError(5,0,0.015875); gre->SetPoint(6,29.9998,1.0066); gre->SetPointError(6,0,0.0163886); gre->SetPoint(7,49.9999,1.00953); gre->SetPointError(7,0,0.0152208); gre->SetPoint(8,99.9999,0.974055); gre->SetPointError(8,0,0.0151734); gre->Draw("pl"); gre = new TGraphErrors(9); gre->SetName("LDCGLD"); gre->SetTitle("LDCGLD"); gre->SetFillColor(1); gre->SetLineColor(4); gre->SetLineWidth(2); gre->SetMarkerColor(4); gre->SetMarkerStyle(24); gre->SetMarkerSize(1.0); gre->SetPoint(0,0.9995,0.946565); gre->SetPointError(0,0,0.0177648); gre->SetPoint(1,1.5003,0.942653); gre->SetPointError(1,0,0.017818); gre->SetPoint(2,2.0002,0.964978); gre->SetPointError(2,0,0.0156842); gre->SetPoint(3,3.0002,0.964215); gre->SetPointError(3,0,0.0160609); gre->SetPoint(4,4.9999,0.960442); gre->SetPointError(4,0,0.0157125); gre->SetPoint(5,10.0004,0.96293); gre->SetPointError(5,0,0.0149672); gre->SetPoint(6,29.9998,0.969972); gre->SetPointError(6,0,0.0149037); gre->SetPoint(7,49.9999,0.973715); gre->SetPointError(7,0,0.0146179); gre->SetPoint(8,99.9999,0.998005); gre->SetPointError(8,0,0.0150559); gre->Draw("pl"); TLegend *leg = new TLegend(0.29,0.71,0.5,0.9,NULL,"brNDC"); // leg->SetTextFont(22); leg->SetTextSize(0.043); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL","GLD","ple"); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLDPrime","ple"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLD4LDC","ple"); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); TLegend *leg1 = new TLegend(0.52,0.69,0.62,0.89,NULL,"brNDC"); // leg->SetTextFont(22); leg1->SetTextSize(0.032); leg1->SetLineColor(1); leg1->SetLineStyle(1); leg1->SetFillColor(1); leg1->SetFillStyle(0); leg1->SetBorderSize(0); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.0 T, R_{min}= 17.5 mm)",""); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.5 T, R_{min}= 16 mm)",""); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=4.0 T, R_{min}= 15 mm)",""); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg1->Draw(); TLatex * tex = new TLatex(1.2,1.16,"b)"); // tex->SetTextFont(22); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); c2->Modified(); c2->cd(); c2->SetSelected(c2); c2->SaveAs("d0ResRatio.eps"); c2->SaveAs("d0ResRatio.gif"); }